package com.food.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-07-03
 */
@Getter
@Setter
@ToString
@TableName("food_review")
public class FoodReview implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评价ID，主键
     */
    @TableId(value = "review_id", type = IdType.AUTO)
    private Integer reviewId;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 美食ID
     */
    @TableField("food_id")
    private Integer foodId;

    /**
     * 评分(1-5星)
     */
    @TableField("rating")
    private Integer rating;

    /**
     * 评价内容
     */
    @TableField("comment")
    private String comment;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;
}
